package org.dromara.authcode.domain.vo;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.authcode.domain.DeviceAuth;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 设备激活记录视图对象 device_auth
 *
 * @author Miles Meng
 * @date 2025-08-08
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = DeviceAuth.class)
public class DeviceAuthVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 激活记录ID
     */
    @ExcelProperty(value = "激活记录ID")
    private Long id;

    /**
     * 用户ID
     */
    @ExcelProperty(value = "用户ID")
    private Long userId;

    /**
     * 设备唯一标识
     */
    @ExcelProperty(value = "设备ID")
    private Long deviceId;

    /**
     * 授权码
     */
    @ExcelProperty(value = "授权码")
    private String authCode;

    /**
     * 使用的授权码ID
     */
    @ExcelProperty(value = "使用的授权码ID")
    private Long authCodeId;

    /**
     * 授权时间
     */
    @ExcelProperty(value = "授权时间")
    private Date authTime;

    /**
     * 到期时间
     */
    @ExcelProperty(value = "到期时间")
    private Date expireTime;


}
